<template>
  <!-- 黑名单文件上传查询明细-->
  <el-dialog :title="title" center :visible.sync="openState" width="1024px" :close-on-click-modal="false">
    <el-form ref="form" :model="form" :rules="rules" :disabled="true" label-width="110px">
      <!--黑名单文件上传查询明细-->

      <el-row>
        <el-col :span="12">
          <el-form-item label="文件类型" prop="fileType">
            <el-select v-model="form.fileType" placeholder="文件类型" style="width: 100%" :disabled="true">
              <el-option
                v-for="dict in dictMap.FILE_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="文件名" prop="fileName">
            <el-input v-model="form.fileName" placeholder="文件名" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="上传记录数" prop="recNum">
            <el-input v-model="form.recNum" placeholder="上传记录数" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="状态" prop="status">
            <el-select v-model="form.status" placeholder="状态" style="width: 100%" :disabled="true">
              <el-option
                v-for="dict in dictMap.FILE_STATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="上传操作员" prop="uploadTlrno">
            <el-input v-model="form.uploadTlrno" placeholder="上传操作员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="上传时间" prop="uploadTime">
            <el-date-picker
              style="width: 100%"
              v-model="form.uploadTime"
              value-format="yyyyMMddHHmmss"
              type="datetime"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="审核操作员" prop="audTlrno">
            <el-input v-model="form.audTlrno" placeholder="审核操作员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="审核时间" prop="audTime">
            <el-date-picker style="width: 100%" v-model="form.audTime" value-format="yyyyMMddHHmmss" type="datetime" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="24">
          <el-form-item label="审核附言" prop="audRemarks">
            <el-input v-model="form.audRemarks" placeholder="审核附言" type="textarea" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>
<script>
import { fileUploadRecordQueryDetail } from "@/api/cnaps/bizMng/blackList.js";
import { listPageMixin } from "@/libs/listPageMixin";

export default {
  name: "fileUploadRecordQueryDialog",
  mixins: [listPageMixin],
  components: {},
  data() {
    return {
      title: "",
      // 是否显示弹出层
      openState: false,
      // 字段可编辑控制

      //数据字典
      searchFormDictList: ["FILE_TYPE", "FILE_STATUS"],
      // 表单参数
      form: {},
      // 表单校验
      rules: {},
      opButtonList: () => {
        return [];
      },
    };
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("form");
      this.$set(this, "form", {});
    },
    // 关闭回掉
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then((_) => {
          this.reset();
          done();
        })
        .catch((_) => {});
    },
    show(row) {
      this.form = row;
      this.title = "黑名单文件上传查询明细";
      this.openState = true;

      this.fileUploadRecordQueryDetail(row);
    },

    fileUploadRecordQueryDetail: function (row) {
      fileUploadRecordQueryDetail(row).then((response) => {
        this.showData(response);
      });
    },
    showData: function (response) {
      this.form = response.result.data;
    },

    cancel() {
      this.openState = false;
      this.reset();
      this.$emit("editComplete", true);
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
